import { findAllProj } from '@/apis/projAPI'
import { ProjModel } from '@/types/model'
import { ref } from 'vue'

export default () => {
  const projs = ref<ProjModel[]>()

  const all = async (args = {}) => {
    const { data } = await findAllProj(args)
    projs.value = data
  }

  return { all, projs }
}
